import request from '../utils/request';

export const getOrders = query => {
    return request({
        url: 'showOrder/getServerOrders',
        method: 'get',
        params: query
    });
};

export const searchServerOrders = query => {
    return request({
        url: 'showOrder/searchServerOrders',
        method: 'get',
        params: query
    });
};


export const getGoodsOrders = query => {
    return request({
        url: 'showOrder/getGoodsOrders',
        method: 'get',
        params: query
    });
};

export const searchGoodsOrders = query => {
    return request({
        url: 'showOrder/searchGoodsOrders',
        method: 'get',
        params: query
    });
};

export const getRefundGoodsOrders = query =>{
    return request({
        url: 'showOrder/getRefundGoodsOrders',
        method: 'get',
        params: query
    });
}

export const refundGoodsOrders = query =>{
    return request({
        url: 'carGoodsOrder/refundOrder',
        method: 'post',
        params: query
    });
}

